<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<base href="<%=basePath%>"/>
<div id="pop_up_content">
	<div class="pop_up_title images_1">
		新建工作日志
	</div>
	<div class="pop_up_body">
		<form id="thisForm" action="updatePersonLog.action" method="post">
			<table id="SignFrame" border="0" cellpadding="2" cellspacing="1" style="margin:0px; font-size:14px;">
				<tr>
				<td valign="top">
					<div class="form_input_value">
						工作内容
					</div>
				</td>
				<td>
					<input  type="hidden" name="personLogVo.id" value="<s:property value="personLogVo.id"/>" >
					<textarea id='content' name='personLogVo.content' class='dialogy_input max_length:2000 required' rows='' cols='' style='width:320px;height:100px;overflow-y:scroll;overflow-x:hidden;margin-left: 8px;'><s:property value="personLogVo.content"/></textarea>
					<font color="red">【不能为空且字数限制2000字】</font>
				</td>
			</tr>
			<tr>
				<td></td>
				<td align="right">
					<input type="button" id="thisButton" name="thisButton" value="修改"  class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'"> 
					<input type="button" value="取消" class="btn" onclick="hideDialog();" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
					<input type="hidden" id="userId" name="personLogVo.user.id" value="<s:property value="#session.user.userId"/>"/>
					<input type="hidden" id="logDay" name="logDay" value="7"/>
				</td>
			</tr>
			</table>
		</form>
	</div>
</div>
<script type="text/javascript">
/* 表单提交 */
	i.formSubmit("thisButton",	//绑定的按钮id
					  "thisForm" ,   //提交的表单id
					  function(result){
						  	var jsonMsgObj=new JsonMsgObj(result);
							var  msg=jsonMsgObj.getMessage();
						    var codeId=jsonMsgObj.getCodeid();
							var isOk=jsonMsgObj.getIsok();
							if( isOk ){
							    aerouiAlert(msg);
								hideDialog();// 隐藏窗口
								location.reload();
							}else{		// 如果编辑失败了
							  JsManageInfoHandleException( result , function(msg , codeId , isOk){
							  		hideDialog();// 隐藏窗口
							   });
						   }
						});
</script>